package com.ruoyi.system.Fdongbei.service.impl;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.Fdongbei.domain.TbHetongHuayan;
import com.ruoyi.system.Fdongbei.mapper.TbHetongHuayanMapper;
import com.ruoyi.system.Fdongbei.service.ITbHetongHuayanService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fufeng
 * @since 2024-12-09
 */
@Service
public class TbHetongHuayanServiceImpl implements ITbHetongHuayanService {



    @Resource
    TbHetongHuayanMapper tbHetongHuayanMapper;
    @DataSource(value = DataSourceType.LY002_D)

    public List<TbHetongHuayan> selectListhetonghuayan(){
        LocalDateTime localDateTime = LocalDateTime.now();
        return tbHetongHuayanMapper.selectListhetonghuayan(localDateTime.toString());
    }


    @DataSource(value = DataSourceType.LY002_D)
    public String selectByHth(String hth){
        LocalDateTime localDateTime = LocalDateTime.now();
        return tbHetongHuayanMapper.selectByHth(hth);
    }

}
